package org.jeecg.modules.util;

import cn.hutool.core.collection.ListUtil;

import org.jeecg.modules.demo.saobeiorderrecord.entity.SaobeiOrderRecord;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;



public class DebugUtils {
    private DebugUtils (){

    }

    public static List<String>  showNullFiled(Object o){
        List<String> fileds = new ArrayList<>();
        Map<String, Object> map = BeanUtils.bean2Map(o);
        for (String key:map.keySet()){
            if (map.get(key) == null){
                fileds.add(key);
            }
        }

        //System.out.println(fileds.toString() +"is null");

        return fileds;
    }

    public static void main(String[] args) {
        List<String> fileds = new ArrayList<>();
        fileds.add("id");
        fileds.add("name");
        System.out.println(fileds.toString() +"is null");
    }

}
